package com.xh.bussiness.course.service;



import com.xh.bussiness.course.bean.request.PrepareConfigGroupRequest;
import com.xh.bussiness.course.model.PrepareConfigGroup;
import com.xh.bussiness.permission.bean.dto.UserDto;
import com.xh.bussiness.permission.model.User;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Jqm
 * @since 2021-02-05
 */
public interface IPrepareConfigGroupService extends IBaseService<PrepareConfigGroup> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryPrepareConfigGroupPage(XhPage page, PrepareConfigGroupRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryPrepareConfigGroup(PrepareConfigGroupRequest bean);

    /**
     * 创建默认分组
     * @param courseId
     * @return
     */
    String createDefaultGroups(String courseId);

    String addUsers(PrepareConfigGroupRequest bean);

    XhPage<Map<String, Object>> queryUsersByGroupId(XhPage page, String courseId, String groupId, String userName);

    XhPage<Map<String, Object>> queryUsers(XhPage page, String courseId, String userName);

    String getUserPrepareConfig(String userId, String courseId);

}
